﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Besture.Bll.UserBase;
using Besture.UI.Common;

namespace Besture.UI.Portal.UserCenter
{
    public partial class MyIntegralList : UserPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                var dt = new PointsRecordDac().GetDataTableByUserId(GetUserLoginModel().ID);
                if (dt!=null && dt.Rows.Count > 0)
                {
                    spIntegral.InnerText = dt.Rows[0]["sumPoints"].ToString();
                    rpPointsRecord.DataSource = dt;
                    rpPointsRecord.DataBind();
                }
            }

        }
    }
}